import axios from '../../axios.js';

const STUDENTS_URL = "/students";

const studentsApi = {
  getStudents: function(params) {
    return axios({
      url: STUDENTS_URL,
      method: 'get',
      params
    })
  },
  deleteStudents(data) {
    return axios({
      url: STUDENTS_URL,
      method: 'delete',
      data
    })
  },
  addStudents(data) {
    return axios({
      url: STUDENTS_URL,
      method: "post",
      data
    })
  }
}

export default studentsApi;